package cn.bitkit.base.container;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author changbo
 */
@Getter
@Setter
public class PageResponse<T> {

	/** 数据总数  **/
	private long total = 0;

	private List<T> list;
	
	public static <T> PageResponse<T> create(long total, List<T> list) {
		PageResponse<T> resp = new PageResponse<T>();
		resp.setTotal(total);
		resp.setList(list);
		return resp;
	}

}
